package com.gg.ggw.controller.validating;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class LoginForm {

    @NotNull(message = "请输入账号")
    @Size(min=5, max=15, message = "账号必须为5至15位字符")
    private String username;

    @NotNull(message = "请输入密码")
    @Size(min=6, max=15, message = "密码必须为6至15位字符")
    private String password;

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }


    public void setPassword(String passwrod) {
        this.password = passwrod;
    }

    public String toString() {
        return "Person(Username: " + this.username + ", Password: " + this.password + ")";
    }
}